<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>模块修改页面</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>res/wzw/layui/css/layui.css" media="all">
<base href="<%=basePath%>">
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>修改模块</legend>
	</fieldset>

	<form class="layui-form"
		action="<%=basePath%>module/saveOrUpdate" method="post">
		<input type="hidden" id="modId" name="mod_id">
		<div class="layui-form-item">

			<div class="layui-form-item">
				<label class="layui-form-label">模块名称</label>
				<div class="layui-input-block">
					<input type="text" name="mod_name" id="modName"
						lay-verify="required" placeholder="请输入" autocomplete="off"
						class="layui-input" maxlength="20">
				</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">模块编码</label>
			<div class="layui-input-block">
				<select name="mod_code" id="modCode" required lay-verify="required"
					autocomplete="off" class="layui-input">
					<option></option>
					<option value="gl">管理模块</option>
					<option value="dj">店家模块</option>
				</select>
			</div>
		</div>
			<div class="layui-form-item">
				<label class="layui-form-label">模块说明</label>
				<div class="layui-input-block">
					<input type="text" name="mod_desc" id="modDesc"
						lay-verify="required" placeholder="请输入" autocomplete="off"
						class="layui-input" maxlength="20">
				</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">是否有效</label>
				<div class="layui-input-block">
					<select name="isva" id="isva" required lay-verify="required"
						autocomplete="off" class="layui-input">
						<option></option>
						<option value="0">无效</option>
						<option value="1">有效</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">操作人</label>
				<div class="layui-input-block">
					<input type="text" name="oper" id="oper" lay-verify="required"
						placeholder="请输入" autocomplete="off" class="layui-input"
						maxlength="20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">URL</label>
				<div class="layui-input-block">
					<input type="text" name="url" id="url" lay-verify="required"
						placeholder="请输入" autocomplete="off" class="layui-input"
						maxlength="20">
				</div>
			</div>
		</div>

		<!-- 提交重置 -->
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-submit=""
					lay-filter="moduleUpdate" value="立即修改">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	<script src="<%=basePath %>res/wzw/layui/layui.js"></script>
	<script type="text/javascript">
		
		layui.use('form', function(){
			  var form = layui.form
			  ,layer = layui.layer
			  ,$ = layui.$;
			  form.on('submit(moduleUpdate)',function(){
				  parent.location.reload(); // 父页面刷新
			  });
			 
			});
	</script>
</body>
</html>